package com.integration.gateway.pojo;

import lombok.Data;

import java.io.Serializable;

@Data
public class Drink implements Serializable {

    private static final long serialVersionUID = 1L;

    private int orderNumber;

    private DrinkType drinkType;

    private int shots;

    private boolean iced;

    public Drink(OrderItem orderItem){
        this.orderNumber = orderItem.getOrderNumber();
        this.drinkType = orderItem.getDrinkType();
        this.shots = orderItem.getShots();
        this.iced = orderItem.isIced();
    }
}
